import request from '@/utils/request'
// 证件类型
export function getCardTypeList() {
  return request({
    url: window.CONFIG.workOrderRestIp + '/EripDataSyn/getCardTypeList',
    method: 'get'
  })
}
// 交易渠道
export function getChannelList() {
  return request({
    url: window.CONFIG.workOrderRestIp + '/EripDataSyn/getChannelList',
    method: 'get'
  })
}
// 工单分类
export function getClassifyList() {
  return request({
    url: window.CONFIG.workOrderRestIp + '/EripDataSyn/getClassifyList',
    method: 'get'
  })
}
// 涉及机构
export function getInstitutionList() {
  return request({
    url: window.CONFIG.workOrderRestIp + '/EripDataSyn/getInstitutionList',
    method: 'get'
  })
}
// 投诉业务类型
export function getTsBusinessTypeList() {
  return request({
    url: window.CONFIG.workOrderRestIp + '/EripDataSyn/getTsBusinessTypeList',
    method: 'get'
  })
}
// 获取业务分类
export function getBusinesTypeList() {
  return request({
    url: window.CONFIG.workOrderRestIp + '/EripDataSyn/getBusinesTypeList',
    method: 'get'
  })
}
// 获取权限
export function getRole(parmas) {
  return request({
    url: window.CONFIG.workOrderRestIp + '/EripDataSyn/getUserPermissionsList?userId=' + parmas.userId + '&tenantId=' + parmas.tenantId,
    method: 'get'
  })
}
// 短信
export function sendMessage(params) {
  return request({
    url: window.CONFIG.workOrderRestIp + '/EripDataSyn/sendMessage',
    method: 'post',
    data: params
  })
}
// 邮件
export function sendEmail(params) {
  return request({
    url: window.CONFIG.workOrderRestIp + '/EripDataSyn/sendEmail',
    method: 'post',
    data: params
  })
}
// 主题颜色
export function themeColor() {
  return request({
    url: window.CONFIG.workOrderRestIp + '/EripDataSyn/getMajorColor',
    method: 'get',
  })
}

// 约定还款银行编号
export function bankCode(params) {
  return request({
    url: window.CONFIG.bsrUrl + '/v1/transaction/real',
    method: 'post',
    data: params
  })
}
// 贷款结清日期
export function terminationDate(params) {
  return request({
    url: window.CONFIG.bsrUrl + '/v1/transaction/real',
    method: 'post',
    data: params
  })
}
// 还款日
export function  paidDate(params) {
  return request({
    url: window.CONFIG.bsrUrl + '/v1/transaction/real',
    method: 'post',
    data: params
  })
}

// 获取居住地址
export function  getAddress(params) {
  return request({
    url: window.CONFIG.bsrUrl + '/v1/transaction/real',
    method: 'post',
    data: params
  })
}